package com.qingke.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

public interface WordMapper {

	@Select("select cn from word where en = #{en}") 
    String getWord(String en);

	@Insert("insert into word(en,cn) values(#{param1},#{param2})")
	void insertWord(String en,String cn);
	
	@Select("select * from word where en like concat('%',#{en},'%')")
	List<Map<String,String>> searchWord(String en);
}

